package asia.doing.model;

import java.util.Date;
import java.util.Objects;
import java.util.Set;

public class Article {
    private Integer id;
    private Integer cat_id;
    private String title;
    private String summary;
    private String origin_content;
    private String convert_content;
    private Integer view;
    private Integer article_status;
    private Date create_time;
    private Integer create_by;
    private Date update_time;
    private Date update_content_time;
    private Integer update_by;
    private Set<Tag> tags;

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        Article other = (Article) obj;
        return Objects.equals(id, other.getId());
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCat_id() {
        return cat_id;
    }

    public void setCat_id(Integer cat_id) {
        this.cat_id = cat_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getOrigin_content() {
        return origin_content;
    }

    public void setOrigin_content(String origin_content) {
        this.origin_content = origin_content;
    }

    public String getConvert_content() {
        return convert_content;
    }

    public void setConvert_content(String convert_content) {
        this.convert_content = convert_content;
    }

    public Integer getView() {
        return view;
    }

    public void setView(Integer view) {
        this.view = view;
    }

    public Integer getArticle_status() {
        return article_status;
    }

    public void setArticle_status(Integer article_status) {
        this.article_status = article_status;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Integer getCreate_by() {
        return create_by;
    }

    public void setCreate_by(Integer create_by) {
        this.create_by = create_by;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public Date getUpdate_content_time() {
        return update_content_time;
    }

    public void setUpdate_content_time(Date update_content_time) {
        this.update_content_time = update_content_time;
    }

    public Integer getUpdate_by() {
        return update_by;
    }

    public void setUpdate_by(Integer update_by) {
        this.update_by = update_by;
    }

    public Set<Tag> getTags() {
        return tags;
    }

    public void setTags(Set<Tag> tags) {
        this.tags = tags;
    }
}
